export class DateUtils {
  public static format(date: Date): string {
    const year = date.getFullYear();
    const month = String(date.getMonth() + 1).padStart(2, "0");
    const day = String(date.getDate()).padStart(2, "0");

    const time = "00:00:00";

    //    console.log("format time: " + `${year}-${month}-${day} ` + time);

    return `${year}-${month}-${day} ` + time;
  }
}
